import {defineStore} from 'pinia'
import {ref} from 'vue'



export const useUserInfoStore = defineStore('userInfo', {
  state: () => ({
    info: {} // 状态数据
  }),
  actions: {
    // 设置用户信息
    setInfo(newInfo) {
      this.info = newInfo
    },
    // 清除用户信息
    removeInfo() {
      this.info = {}
    }
  },
  persist: true // 保持持久化配置
})

